package com.quectel.core.module.patrol.dto;

import com.quectel.core.module.device.dto.DeviceDto;
import com.quectel.core.module.village.dto.VillageDto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 视频巡逻任务
 *
 * @author caolu
 * @email louis.cao@quectel.com
 * @date 2020-07-07 15:47:56
 */
@Data
@Schema
public class VideoPatrolTaskDto implements Serializable {

    /**
     *
     */
    @Schema(description = "id")
    private Long id;
    /**
     * 租户id
     */
    @Schema(description = "租户id")
    private String tenantId;
    /**
     * 所属小区
     */
    @Schema(description = "所属小区")
    private Long villageId;
    /**
     * 计划id
     */
    @Schema(description = "计划id")
    private Long planId;
    /**
     * 计划json
     */
    @Schema(description = "计划json")
    private String planJson;
    /**
     * 任务名称(日期+计划+时间段)
     */
    @Schema(description = "计划名")
    private String name;
    /**
     * 巡检人id
     */

    @Schema(description = "巡检人id")
    private Long execUserId;
    /**
     * 巡检人姓名
     */
    @Schema(description = "巡检人姓名")
    private String execUsername;
    /**
     * 任务日期2020-10-03
     */
    @Schema(description = "任务日期")
    private String date;
    /**
     * 日期时间段03:00-06:00
     */
    @Schema(description = "日期时间段")
    private String period;

    @Schema(description = "任务开始时间")
    private Date execStartTime;

    @Schema(description = "任务结束时间")
    private Date execEndTime;


    /**
     * 路线信息
     */
    @Schema(description = "路线信息")
    private String routeArr;
    /**
     * 每个路线播放视频长度
     */
    @Schema(description = "每个路线播放视频长度")
    private Integer videoPlayDuration;
    /**
     * 0生成未执行 1执行成功
     */
    @Schema(description = "0生成未执行 1执行成功")
    private Byte execStatus;

    /**
     * 是否推送1是0否
     */
    @Schema(description = "是否推送1是0否")
    private Byte isPush;

    /**
     *
     */
    @Schema(description = "创建人")
    private String creator;
    /**
     *
     */
    @Schema(description = "创建时间")
    private Date createTime;
    /**
     *
     */
    @Schema(description = "修改人")
    private String editor;
    /**
     *
     */
    @Schema(description = "修改时间")
    private Date editTime;


    private VillageDto villageDto;

    private List<DeviceDto> deviceDtoList;

    private List<String> streamUrls;

}
